import request from '@/utils/request'

// 查询库存盘点明细列表
export function listStoreShelfDetail(query) {
  return request({
    url: '/supplier/storeShelfDetail/list',
    method: 'get',
    params: query
  })
}

// 查询库存盘点明细详细
export function getStoreShelfDetail(id) {
  return request({
    url: '/supplier/storeShelfDetail/' + id,
    method: 'get'
  })
}

// 新增库存盘点明细
export function addStoreShelfDetail(data) {
  return request({
    url: '/supplier/storeShelfDetail',
    method: 'post',
    data: data
  })
}

// 修改库存盘点明细
export function updateStoreShelfDetail(data) {
  return request({
    url: '/supplier/storeShelfDetail',
    method: 'put',
    data: data
  })
}

// 删除库存盘点明细
export function delStoreShelfDetail(id) {
  return request({
    url: '/supplier/storeShelfDetail/' + id,
    method: 'delete'
  })
}

// 导出库存盘点明细
export function exportStoreShelfDetail(query) {
  return request({
    url: '/supplier/storeShelfDetail/export',
    method: 'get',
    params: query
  })
}